//
//  UIButton+Extension.swift
//  LX_weibo
//
//  Created by LTT❤️ on 15/7/22.
//  Copyright © 2015年 LTT. All rights reserved.
//

import UIKit

extension UIButton {
    convenience init(title:String,imageName:String,fontSize:CGFloat,titleColor:UIColor = UIColor.darkGrayColor())
    {
        self.init()
        
       setTitle(" " + title, forState: UIControlState.Normal)
       setImage(UIImage(named: imageName), forState: UIControlState.Normal)
       titleLabel?.font = UIFont.systemFontOfSize(fontSize)
       setTitleColor(titleColor, forState: UIControlState.Normal)
    
   }

}

